package com.zwps.biz.dal.db.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zwps.biz.api.model.vo.dsmspgpzwl.MaxMinDrpVO;
import com.zwps.biz.api.model.vo.strsvrr.GetLastValueVO;
import com.zwps.biz.dal.db.object.StPptnRDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;
@DS("lhk")
@Mapper
public interface StPptnRDAO extends BaseMapper<StPptnRDO> {

    BigDecimal selectDrp(@Param("stcd") String stcd);
    BigDecimal selectDrpNew(@Param("tm") Date tm);

    List<MaxMinDrpVO> getMaxMinDrp(Map<String, Object> params);

    List<GetLastValueVO> getHistoryValue(String stcd, Integer type, String startTime, String endTime);

    BigDecimal getRsvr(String mstm);
}